package com.nbot.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.nbot.server.mapper.master.CctvMapper;
import com.nbot.server.domain.CctvDO;
import com.nbot.server.service.CctvService;



@Service
public class CctvServiceImpl implements CctvService {
	@Autowired
	private CctvMapper cctvMapper;
	
	@Override
	public CctvDO get(Long autoId){
		return cctvMapper.get(autoId);
	}
	
	@Override
	public List<CctvDO> list(Map<String, Object> map){
		return cctvMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return cctvMapper.count(map);
	}
	
	@Override
	public int save(CctvDO cctv){
		return cctvMapper.save(cctv);
	}
	
	@Override
	public int update(CctvDO cctv){
		return cctvMapper.update(cctv);
	}
	
	@Override
	public int remove(Long autoId){
		return cctvMapper.remove(autoId);
	}
	
	@Override
	public int batchRemove(Long[] autoIds){
		return cctvMapper.batchRemove(autoIds);
	}

	@Override
	public CctvDO getByTag(String ip){
		return cctvMapper.getByTag(ip);
	}

	@Override
	public int getMaxAutoid(){
		return cctvMapper.getMaxAutoid();
	}

}
